<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\Role;
use Illuminate\Http\Request;

class AccessController extends Controller {

    //更新
    public function update(Request $request)
    {
        $data = $request->all();
        $info = Role::findOrFail($data['id']);
        $info->update($data);
        return $this->writeJson(0,null,'更新权限成功');
    }
}
